<template>
	<view class="page flex-col">
		<cu-custom bgColor="bg-gradual-pink" :isBack="true">
			<block slot="content">公告详情</block>
		</cu-custom>
		<view class="img_wapBox">
			<image class="image" :src="formDataList.icon" mode="aspectFill"></image>
		</view>
		<view class="detailcontent">
			<view class="title">
				{{formDataList.title}}
			</view>
			<view class="text">
				创建人：{{formDataList.createBy}}
			</view>
			<view class="text">
				创建时间：{{formDataList.createTime}}
				<view>更新时间：{{formDataList.updateTime}}</view>
			</view>
			<!-- <view class="text">
				拍卖方式：555
			</view>
			<view class="text">
				发布媒体：中国商网<view>联系方式：1122</view>
			</view> -->
			<view class="content">
				<rich-text :nodes="formDataList.content"></rich-text>
			</view>
		</view>
		<!-- <view class="bidding">
			<view class="borderwidth"></view>
			<view class="notice">竞拍须知</view>
			<view class="content">

			</view>
		</view>
		<view class="scrollnav">
			<view class="title">
				<image class="image" src="/static/home/128/lu.png" mode="widthFix"></image>
				<view class="h6">标物</view>
			</view>
		</view> -->
		
	</view>
</template>

<script>
	import server from '@/api/server.js'
	export default {
		components: {
		},
		data() {
			return {
				formDataList:[],
			};
		},

		onLoad() {

		},
		mounted() {
			this.getnoticequeryById()

		},
		methods: {
			getnoticequeryById(){
				server.noticequeryById({id:this.$root.$mp.query.id}).then(res => {
					console.log(res)
					this.formDataList = res.data.result
				})
			},
		},
	}
</script>

<style lang="scss" scoped>
	.img_wapBox {
		overflow: hidden;
		height: 80px;
		padding-bottom: 56.25%;
		position: relative;
		width: 100%;
		overflow: hidden;
		float: left;

		.image {
			width: 100%;
			height: 100%;
			position: absolute;
			top: 0;
			left: 0;
			object-fit: cover;
			-webkit-transition: all 0.5s;
			-o-transition: all 0.5s;
			transition: all 0.5s;
		}
	}

	.detailcontent {
		background-color: white;
		padding: 0 10px;
		width: 100%;
		float: left;

		.title {
			font-size: 18px;
			font-weight: bold;
			margin: 10px 0;
			text-indent: 2em;
			line-height: 28px;
		}

		.text {
			font-size: 12px;
			line-height: 22px;
			color: #666666;
			text-indent: 2em;

			view {
				display: inline-block;
			}
		}

		.content {
			text-indent: 2em;
			line-height: 22px;
			font-size: 14px;
			letter-spacing: 1px;
			margin-top: 10px;
			p{
				line-height: 22px;
				font-size: 14px;
				letter-spacing: 2px;
			}
		}
		
	}

	.bidding {
		position: relative;
		float: left;
		width: 100%;
		background: #FBFBFB;
		padding: 0 10px 10px 10px;

		.borderwidth {
			width: 70%;
			    height: 1px;
			position: absolute;
			top: 13px;
			left: 50%;
			margin-left: -35%;
			background-color: #e3e0e0;
		}

		.notice {
			background: #FBFBFB;
			font-size: 12px;
			position: absolute;
			left: 50%;
			width: 76px;
			margin-left: -38px;
			height: 20px;
			line-height: 20px;
			top: 4px;
			text-align: center;
			color: #999;
		}

		.content {
			text-indent: 2em;
			line-height: 22px;
			font-size: 12px;
			letter-spacing: 1px;
			color: #666666;
			padding-top: 26px;
		}
	}

	.scrollnav {
		float: left;
		width: 100%;
		background-color: white;
		padding: 10px;

		.title {
			display: flex;
			align-items: center;
			font-size: 18px;

			.image {
				width: 14px;
				height: 14px;
			}

			.h6 {
				margin-left: 5px;
			}
		}
	}
</style>
